#include <stdio.h>

int main(int argc, char *argv[]) {

    int n = 0, z = 1;
    scanf("%d", &n);

    for (size_t i = 1; i <= n; i++)
    {
        z *= i;
    }
    printf("%lld", z);

    return 0;
}